package com.shg.service;


import java.util.List;

import com.shg.bean.Admin;
import com.shg.bean.Power;
import com.shg.bean.QueryResult;
import com.shg.bean.Roles;

public interface RolesService extends BasiceDao<Roles> {

	public void addPower(Integer[] power,Integer role)throws Exception;
	
	public QueryResult<Roles> getAllRole(int firstResult,int maxResult)throws Exception;
	
	public List<Power> getPowerList(long roleid)throws Exception;
	
	public void updatePower(long[] powerid,long roleid)throws Exception;

	public List<Admin> getAdminList(long roleid)throws Exception;

	public void updateRoleAdmin(long roleid, long[] adminid)throws Exception;

	public QueryResult<Roles> updateLockRole(Roles role,int firstResult, int maxResult)throws Exception;

	public void updateRole(Roles role)throws Exception;
}
